package com.it.proxy.test;

import com.it.proxy.aop.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testAopDemo {
    @Test
    public void testAopUser(){
        ApplicationContext context=new ClassPathXmlApplicationContext("Aop.xml");
        User user = context.getBean("user", User.class);
        user.add();

    }
}
